// File:    defs.h
// Author:  Brian Vanderburg II
// Purpose: Definitions for ExprEval
//------------------------------------------------------------------------------

namespace ExprEval
{

inline bool
equal_eps (
    const double v1,
    const double v2)
{
    double diff=std::abs (v1-v2);
    if(diff<TOLERANCE)
    {
        return true;
    }
    else
    {
        return false;
    }
}


inline double
sign (
    const double value)
{
    return ((value>0)?1.:-1.);
}

} // namespace ExprEval
